﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>

<asp:Content ContentPlaceHolderID="titleContent" runat="Server">优学校</asp:Content>
<asp:Content ContentPlaceHolderID="headContent" runat="Server">
    <link href="/content/slideBox/css/jquery.slideBox.css" rel="stylesheet" />
    <style type="text/css">
        #index-body {
            padding-left: 10px;
            margin-top: -20px;
        }
    </style>
</asp:Content>
<asp:Content ContentPlaceHolderID="mainContent" runat="Server">

    <div class="row" id="index-body">

        <div class="col-sm-7">
            <div id="ads" class="slideBox">
                <ul class="items">
                    <asp:Repeater ID="lstAds" runat="server">
                        <ItemTemplate>
                            <li>
                                <a href="<%#Eval("url") %>" title="<%#Eval("title") %>">
                                    <img src="<%# Eval("image") %>" alt="<%# Eval("description") %>" />
                                </a>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
        </div>
        <div class="col-sm-5">
            <br />
            <br />
            <div>
                <img src="content/images/beforelogin.gif" alt="" />
            </div>
            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon" style="background: #28b779;">
                        <i class="cus-icon-user"></i>
                    </div>
                    <input class="form-control" type="text" placeholder="用户名" id="UserName" name="UserName" />
                </div>
            </div>
            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon" style="background: #28b779;">
                        <i class="cus-icon-key"></i>
                    </div>
                    <input class="form-control" type="password" placeholder="密码" id="Password" name="Password" />
                </div>
            </div>
            <div style="height: 5px;"></div>
            <div class="row" style="padding-left: 15px;">
                <div class="col-xs-4">
                    <div class="checkbox">
                        <label>
                            <input type="checkbox" id="RememberMe" name="RememberMe" value="true" />记住密码
                        </label>
                    </div>
                </div>
                <div class="col-xs-8 text-right">
                    <button type="submit" class="btn btn-success">登录</button>&nbsp;<a href='#' class="btn btn-info">忘记密码?</a>
                </div>
            </div>
        </div>
    </div>
    <br />
    <h3>热门课程</h3>
    <hr />
    <div>
        <asp:Repeater ID="listHot" runat="server">
            <ItemTemplate>
                <div style="float: left; width: 150px; height: 130px; margin: 10px;">
                    <div class="text-center">
                        <a href="subject-nav.aspx?sid=<%#Eval("sid") %>">
                            <img src="<%#Eval("img") %>" alt="<%#Eval("title") %>" style="cursor: pointer;" onclick="$('.togo-nav').click();" />
                        </a>
                    </div>
                    <p class="text-center">
                        <a href="subject-nav.aspx?sid=<%#Eval("sid") %>"><%#Eval("title") %></a>
                    </p>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <div class="clearfix"></div>
    </div>
    <h3>推荐</h3>
    <hr />
    <div>
        <asp:Repeater ID="listRecommend" runat="server">
            <ItemTemplate>
                <div style="float: left; width: 150px; height: 130px; margin: 10px;">
                    <div class="text-center">
                        <a href="subject-nav.aspx?sid=<%#Eval("sid") %>">
                            <img src="<%#Eval("img") %>" alt="<%#Eval("title") %>" />
                        </a>
                    </div>
                    <p class="text-center">
                        <a href="subject-nav.aspx?sid=<%#Eval("sid") %>" class="togo-nav"><%#Eval("title") %></a>
                    </p>
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>

</asp:Content>
<asp:Content ContentPlaceHolderID="scriptContent" runat="Server">
    <script src="/content/slideBox/js/jquery.slideBox.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".slideBox").slideBox({ delay: 5 });
        });
    </script>
</asp:Content>

